package com.flow.demo.module.gd.controller.app.good.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.flow.demo.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.flow.demo.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 奖品分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class GoodPageReqVO extends PageParam {

    @Schema(description = "奖品名称", example = "张三")
    private String prizeName;

    @Schema(description = "库存")
    private Integer prizeStock;

    @Schema(description = "中奖概率，数值越大中奖概率越高，权重一样时随机中奖")
    private Integer prizeWeight;

    @Schema(description = "奖品图片")
    private String prizeImage;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
